﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu2.Master" AutoEventWireup="true"
    CodeBehind="fSrtJalan.aspx.cs" Inherits="MixScriptWeb.Jideco.fSrtJalan" %>

<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script>
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            jQuery('.datepicker').datepicker({ dateFormat: 'dd-mm-yy' });
        }
    </script>
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            Delivery Note</h2>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID=View1 runat="server">
                <asp:ScriptManager ID=ScriptManager1 runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID=UpdatePanel1 runat="server">
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btnCreateDN" />
                        <asp:PostBackTrigger ControlID="btnFind" />
                    </Triggers>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="btnFind" />
                    </Triggers>
                    <ContentTemplate>
                        <br />
                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
                            DynamicLayout="true">
                            <ProgressTemplate>
                                <img src="../../Styles/images/ajax-loader.gif" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        <table style="width: 100%;" class="table-ui">
                            <tr>
                                <td style="width: 268px;">
                                    Customer Code
                                </td>
                                <td style="width: 5px;">
                                    :
                                </td>
                                <td style="width: 1273px;">
                                    <mix:baseTextBox ID="txtcustid" runat="server" AllowNull=True showFind=True tooltip="This Field Cannot be empty"
                                        isvalid="True" ReadOnly="True" tWidht="200" />
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 268px;">
                                    Delivery Date
                                </td>
                                <td style="width: 5px;">
                                    &nbsp;
                                </td>
                                <td style="width: 1273px;">
                                    <asp:TextBox ID="txtDate1" CssClass="input-small datepicker" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <%--<tr>
                                <td style="width: 268px;">
                                    DN Type</td>
                                <td style="width: 5px;">
                                    :</td>
                                <td style="width: 1273px;">
                                    <asp:DropDownList ID="ddlDNLocalNon" runat="server">
                                        <asp:ListItem Value="L">Local</asp:ListItem>
                                        <asp:ListItem Value="E">Export</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>--%>
                        </table>
                        <br />
                        <table style="width: 600px" class="table-ui">
                            <tr>
                                <td style="height: 26px;">
                                    &nbsp;
                                    <asp:Button ID="btnFind" runat="server" Text="Find" CssClass="button" Width="101px"
                                        OnClick="btnFind_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="btnCreateDN" runat="server" Text="Create DN" CssClass="button" Width="101px"
                                        OnClick="btnCreateDN_Click" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    <asp:Button ID="btnCLear" runat="server" Text="Clear" CssClass="button" Width="101px"
                                        OnClick="btnCLear_Click1" />
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                                <td style="height: 26px; width: 4px;">
                                    &nbsp;
                                </td>
                                <td style="height: 26px">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto">
                            <asp:GridView ID="gvdetail" runat="server" Width="170%" AllowPaging="True" CssClass="gridview"
                                AllowSorting="True" OnPageIndexChanging="gvdetail_PageIndexChanging" OnSorting="gvdetail_Sorting"
                                OnRowDataBound="gvdetail_RowDataBound" OnSelectedIndexChanged="gvdetail_SelectedIndexChanged"
                                AutoGenerateColumns="False" PageSize="25">
                                <AlternatingRowStyle CssClass="alt" />
                                <Columns>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            <asp:CheckBox ID=cbAll runat="server" OnCheckedChanged="cbAll_CheckedChanged" AutoPostBack="True" /></HeaderTemplate>
                                        <EditItemTemplate>
                                            <asp:CheckBox ID="cbitem" runat="server" /></EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="cbitem" runat="server" /></ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="8px" />
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                                <FooterStyle CssClass="ft" />
                                <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                            </asp:GridView>
                        </asp:Panel>
                        <br />
                        <asp:Label ID="lblRowCount" runat="server" Font-Bold="True" Font-Size="X-Small"></asp:Label>
                        <br />
                        <br />
                        <br />
                        <br />
                        <br />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:View>
            <asp:View ID=View2 runat="server">
                <br />
                <table style="width: 100%;" class="table-ui">
                    <tr>
                        <td style="width: 88px;">
                            DeliveryNo
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1175px;">
                            <asp:TextBox ID="txtDelNo" runat="server" CssClass="input-medium" Width="163px"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 88px;">
                            Show PO NO
                        </td>
                        <td style="width: 5px;">
                            :
                        </td>
                        <td style="width: 1175px;">
                            <asp:DropDownList ID="ddlshowpo" runat="server">
                                <asp:ListItem Value="Y">Yes</asp:ListItem>
                                <asp:ListItem Value="N">No</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 88px;">
                            &nbsp;
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td style="width: 1175px;">
                            <asp:DropDownList ID="ddldntyp" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
                                AutoPostBack="True" Visible="False">
                                <asp:ListItem Value="L">Local</asp:ListItem>
                                <asp:ListItem Value="E">Export</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 88px;">
                            &nbsp;
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td style="width: 1175px;">
                            <asp:TextBox ID="txtSNP" runat="server" CssClass="input-medium" Width="163px" Visible="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 88px;">
                            DN Type</td>
                        <td style="width: 5px;">
                            :</td>
                        <td style="width: 1175px;">
                            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="gvdn" runat="server" Width="100%" CssClass="gridview" AutoGenerateColumns="False">
                    <AlternatingRowStyle CssClass="alt" />
                    <Columns>
                        <asp:BoundField DataField="nmr" HeaderText="No" />
                        <asp:BoundField DataField="oaitno" HeaderText="Part No" />
                        <asp:BoundField DataField="itnm" HeaderText="Part Name" />
                        <asp:BoundField DataField="pkqt" HeaderText="QTY" />
                        <asp:BoundField DataField="unmsns" HeaderText="UoM" />
                        <asp:TemplateField HeaderText="SNP">
                            <ItemTemplate>
                                <asp:TextBox ID=tbSNP CssClass="input-small" runat="server"></asp:TextBox></ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="pkno" HeaderText="Case No" />
                    </Columns>
                    <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
                    <FooterStyle CssClass="ft" />
                    <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
                </asp:GridView>
                <table style="width: 100%;" class="table-ui">
                    <tr>
                        <td style="width: 268px;">
                            <asp:Button ID="btnPrint" runat="server" Text="Print" CssClass="button" Width="101px"
                                OnClick="btnPrint_Click1" />
                        </td>
                        <td style="width: 5px;">
                            &nbsp;
                        </td>
                        <td style="width: 1273px;">
                            <asp:Button ID="btnBack" runat="server" CssClass="button" Text="Back" Width="101px"
                                OnClick="btnBack_Click" />
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>
        <br />
        <div id="pnldetail">
        </div>
    </div>
</asp:Content>
